import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ic:baseline-view-in-ar',
      // keepAlive: true,
      order: 4,
      title: $t('page.dashboard.recipeView'),
    },
    name: 'recipt',
    path: '/recipt',
    children: [
      {
        name: 'recipeClass',
        path: '/recipeClass',
        component: () => import('#/views/recipes/recipesClass.vue'),
        meta: {
          title: $t('page.dashboard.recipeClass'),
        },
      },
      {
        name: 'recipeView',
        path: '/recipeView',
        component: () => import('#/views/recipes/recipesView/index.vue'),
        meta: {
          title: $t('page.dashboard.recipeView'),
        },
      },
    ],
  },
];

export default routes;
